package com.example.xyxwebbackend001.model.DTO;

import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

// 图片类型内容块
@Data
@NoArgsConstructor
@AllArgsConstructor
public class ImageBlockDTO extends ContentBlockDTO {

    private String imagePath;

    private String imageType;

    private String altText;

    private String description;

    @Override
    @JsonIgnore
    public String getType() {
        return "image";
    }
}
